import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';

import { SafeAreaView } from 'react-navigation';

import BaseStyle from '../constants/Style';
import Btn from '../components/buttons';

export default class RadioScreen extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  render() {
    return (
      <SafeAreaView
        style={[BaseStyle.flex, styles.homebg]}
        forceInset={{ top: 'never' }}>
        <View style={styles.container}>
          <Btn
            text={'点我'}
            onPress={() => {
              toast('谢谢-_-');
            }}
          />

          <Btn
            text={'点我长提示'}
            btnStyle={styles.radView}
            onPress={() => {
              toastLong('让您久等了-_-');
            }}
          />
        </View>
      </SafeAreaView>
    );
  }
}

const styles = StyleSheet.create({
  homebg: {
    backgroundColor: '#eee',
  },
  container: {
    ...BaseStyle.flex,
    paddingTop: 20,
  },
  radView: {
    marginTop: 20,
  },
});
